<!DOCTYPE html>
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>open_window [HALCON算子参考手册]</title>
<style type="text/css">
      body {
    color: #000000;
    background-color: #ffffff;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.body_main {
    margin-left: 35px;
    margin-right: 35px;
}

@media screen and (min-width:992px) {

    .body_main {
        margin-left: 10%;
        margin-right: 10%;
    }

    table.toctable {
        width: 80%
    }
}

@media screen and (min-width:1400px) {

    .body_main {
        margin-left: 15%;
        margin-right: 15%;
    }

    table.toctable {
        width: 70%
    }
}

body>div ul ul {
    margin-left: inherit;
}

a:link {
    color: #0044cc;
}

a:link,
a:visited {
    text-decoration: none;
}

a:link:hover,
a:visited:hover {
    text-decoration: underline;
}

th {
    text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-rendering: optimizeLegibility;
    color: #666666;
}

code {
    font-family: monospace,monospace;
}

h1 a.halconoperator {
    font-family: Arial, Helvetica, sans-serif;
    color: #666666;
}

h2 a.halconoperator {
    font-family: Arial, Helvetica, sans-serif;
    color: #666666;
}

hr {
    border: 0;
    border-top: solid 1px #f28d26;
}

.pre {
    display: block;
    padding-bottom: 1ex;
    font-family: monospace;
    white-space: pre;
}

pre {
    font-family: monospace, monospace;
    padding: 1ex;
    white-space: pre-wrap;
}

.toc {
    font-size: 80%;
    border-top: 1px dashed #f28d26;
    border-bottom: 1px dashed #f28d26;
    padding-top: 5px;
    padding-bottom: 5px;
}

.inv {
    margin: 0;
    border: 0;
    padding: 0;
}

.banner {
    color: #666666;
    padding-left: 1em;
}

.logo {
    background-color: white;
}

.keyboard {
    font-size: 80%;
    padding-left: 3px;
    padding-right: 3px;
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: #f28d26;
    background-color: #f3f3f3;
}

.warning {
    margin-top: 2ex;
    margin-bottom: 1ex;
    padding: 10px;
    text-align: center;
    border: 1px solid;
    color: #bb0000;
    background-color: #fff7f7
}

.imprint {
    margin-top: 1ex;
    font-size: 80%;
    color: #666666;
}

.imprinthead {
    font-weight: bolder;
    color: #666666;
}

.indexlink {
    text-align: right;
    padding-bottom: 5px;
}

.postscript {
    margin-top: 2ex;
    font-size: 80%;
    color: #666666
}

.evenrow {
    background-color: #e7e7ef;
    vertical-align: top;
}

.oddrow {
    background-color: #f7f7ff;
    vertical-align: top;
}

.headrow {
    background-color: #97979f;
    color: #ffffff;
    vertical-align: top;
}

.logorow {
    vertical-align: top;
}

.error {
    color: red;
}

.var {
    font-style: italic
}

.halconoperator {
    font-family: monospace, monospace;
}

span.operator {
    font-family: monospace, monospace;
}

span.procedure {
    font-family: monospace, monospace;
}

span.operation {
    font-family: monospace, monospace;
}

span.feature {
    font-family: Arial, Helvetica, Homerton, sans-serif;
}

ul {
    padding-left: 1.2em;
}

li.dot {
    list-style-type: square;
    color: #f28d26;
}

.breadcrumb {
    font-size: 80%;
    color: white;
    background-color: #062d64;
    margin-bottom: 20px;
    padding-left: 35px;
    padding-right: 35px;
    padding-bottom: 15px;
}

.webbar {
    font-size: 80%;
    background-color: #dddddd;
    margin-top: 0px;
    margin-left: -35px;
    margin-right: -35px;
    margin-bottom: 0px;
    padding-top: 5px;
    padding-left: 35px;
    padding-right: 35px;
    padding-bottom: 5px;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-top: 1px dashed #f28d26;
    font-size: 80%;
    color: #666666;
    padding-bottom: 8px;
}

.footer .socialmedia a {
    padding-left: 7px;
}

.socialmedia {
    padding-top: 10px;
}

.copyright {
    margin-top: 19px;
}

.breadcrumb a {
    color: #ffffff;
    border-bottom: 1px solid white;
}

.breadcrumb a:link:hover,
.breadcrumb a:visited:hover {
    text-decoration: none;
    border-bottom: none;
}

.heading {
    margin-top: 1ex;
    font-size: 110%;
    font-weight: bold;
    color: #666666;
}

.text {
    color: black;
}

.example {
    font-size: 80%;
    background-color: #f3f3f3;
    border: 1px dashed #666666;
    padding: 10px;
}

.displaymath {
    display: block;
    text-align: center;
    margin-top: 1ex;
    margin-bottom: 1ex;
}

.title {
    float: left;
    padding-top: 3px;
    padding-bottom: 3px;
}

.signnote {
    font-family: Arial, Helvetica, Homerton, sans-serif;
    font-size: 80%;
    color: #666666;
    font-weight: lighter;
    font-style: italic
}

.par {
    margin-bottom: 1.5em;
}

.parhead {
    text-align: right;
}

.parname {
    float: left;
}

.pardesc {
    font-size: 85%;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    margin-left: 2em;
}

.parcat {
    color: #666;
    font-weight: bold;
}

*[data-if=cpp],
*[data-if=c],
*[data-if=dotnet],
*[data-if=com],
*[data-if=python] {
    display: none;
}

.tabbar {
    text-align: right;
    border-bottom: 1px solid #f28d26;
    margin-bottom: 0.5em;
}

ul.tabs {
    padding-top: 3px;
    padding-bottom: 3px;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 80%
}

ul.tabs li {
    padding-top: 3px;
    padding-bottom: 3px;
    display: inline;
    overflow: hidden;
    list-style-type: none;
    margin: 0;
    margin-left: 8px;
    border-top: 1px solid #666;
    border-left: 1px solid #666;
    border-right: 1px solid #666;
}

ul.tabs li.active {
    border-left: 1px solid #f28d26;
    border-right: 1px solid #f28d26;
    border-top: 1px solid #f28d26;
    border-bottom: 1px solid #fff;
}

ul.tabs li.inactive {
    background-color: #eee;
}

ul.tabs li a {
    padding-left: 5px;
    padding-right: 5px;
    color: #666;
}

ul.tabs li a:link:hover {
    text-decoration: none;
}

ul.tabs li.inactive a {
    color: #666;
}

ul.tabs li.active a {
    color: black;
}

dl.generic dd {
    margin-bottom: 1em;
}

.pari {
    color: olive;
}

.paro {
    color: maroon;
}

.comment {
    font-size: 80%;
    color: green;
    white-space: nowrap;
}

table.grid {
    border-collapse: collapse;
}

table.grid td {
    padding: 5px;
    border: 1px solid;
}

table.layout {
    border: 0px;
}

table.layout td {
    padding: 5px;
}

table.table {
    border-collapse: collapse;
}

table.table td {
    padding: 5px;
    border-left: 0px;
    border-right: 0px;
}

table.table tr:last-child {
    border-bottom: 1px solid;
}

table.table th {
    padding: 5px;
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-left: 0px;
    border-right: 0px;
}

.details_summary {
    cursor: pointer;
}

table.toctable {
    width: 100%;
}

table.toctable col:first-child {
    width: 20%;
}

table.toctable col:nth-last-child(2) {
    width: 8%;
}

table.altcolored tr:nth-child(even) {
    background-color: #f3f3f3;
}

    </style>
<!--OP_REF_STYLE_END-->
<script>
    <!--
var active_lang='hdevelop';function switchVisibility(obj,active_lang,new_lang)
{var display_style='inline';
for(var i=0;i<obj.length;i++)
{if(obj.item(i).getAttribute('data-if')==new_lang)
{obj.item(i).style.display=display_style;}
if(obj.item(i).getAttribute('data-if')==active_lang)
{obj.item(i).style.display='none';}}
return;}
function toggleLanguage(new_lang,initial)
{if(active_lang!=new_lang)
{var lis=document.getElementsByTagName('li');for(var i=0;i<lis.length;i++)
{if(lis.item(i).id=='syn-'+new_lang)
{lis.item(i).className='active';}
else
{lis.item(i).className='inactive';}}
var divs=document.getElementsByTagName('div');var spans=document.getElementsByTagName('span');switchVisibility(divs,active_lang,new_lang);switchVisibility(spans,active_lang,new_lang);if(!initial)
{setCookie("halcon_reference_language",new_lang,null,null);}
active_lang=new_lang;}
return;}
function setCookie(name,value,domain,exp_offset,path,secure)
{localStorage.setItem(name,value);}
function getCookie(name)
{return localStorage.getItem(name);}
function initialize()
{var qs=location.href.split('?')[1];var qs_lang_raw=location.href.split('interface=')[1];var qs_lang;if(qs_lang_raw)
{qs_lang=qs_lang_raw.split('#')[0];}
var cookie_lang=getCookie("halcon_reference_language");var new_lang;if((qs_lang=="hdevelop")||(qs_lang=="dotnet")||(qs_lang=="python")||(qs_lang=="cpp")||(qs_lang=="c"))
{new_lang=qs_lang;setCookie("halcon_reference_language",new_lang,null,null);}
else if((cookie_lang=="hdevelop")||(cookie_lang=="dotnet")||(cookie_lang=="python")||(cookie_lang=="cpp")||(cookie_lang=="c"))
{new_lang=cookie_lang;}
else
{new_lang="hdevelop";}
toggleLanguage(new_lang,1);return;}
-->

  </script>
</head>
<body onload="initialize();">
<div class="breadcrumb">
<br class="inv"><a href="index.html">目录</a> / <a href="toc_graphics.html">图形</a> / <a href="toc_graphics_window.html">Window</a><br class="inv">
</div>
<div class="body_main">
<div class="tabbar"><ul class="tabs">
<li id="syn-hdevelop" class="active"><a href="javascript:void(0);" onclick="toggleLanguage('hdevelop')" onfocus="blur()">HDevelop</a></li>
<li id="syn-dotnet" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('dotnet')" onfocus="blur()">.NET</a></li>
<li id="syn-python" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('python')" onfocus="blur()">Python</a></li>
<li id="syn-cpp" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('cpp')" onfocus="blur()">C++</a></li>
<li id="syn-c" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('c')" onfocus="blur()">C</a></li>
</ul></div>
<div class="indexlink">
<a href="index_classes.html"><span data-if="dotnet" style="display:none;">类别</span><span data-if="cpp" style="display:none;">类别</span></a><span data-if="dotnet" style="display:none;"> | </span><span data-if="cpp" style="display:none;"> | </span><a href="index_by_name.html">算子列表</a>
</div>
<!--OP_REF_HEADER_END-->
<h1 id="sec_name">
<span data-if="hdevelop" style="display:inline;">open_window</span><span data-if="c" style="display:none;">T_open_window</span><span data-if="cpp" style="display:none;">OpenWindow</span><span data-if="dotnet" style="display:none;">OpenWindow</span><span data-if="python" style="display:none;">open_window</span> (算子名称)</h1>
<h2>名称</h2>
<p><code><span data-if="hdevelop" style="display:inline;">open_window</span><span data-if="c" style="display:none;">T_open_window</span><span data-if="cpp" style="display:none;">OpenWindow</span><span data-if="dotnet" style="display:none;">OpenWindow</span><span data-if="python" style="display:none;">open_window</span></code> — Open a graphics window.</p>
<h2 id="sec_synopsis">参数签名</h2>
<div data-if="hdevelop" style="display:inline;">
<p>
<code><b>open_window</b>( :  : <a href="#Row"><i>Row</i></a>, <a href="#Column"><i>Column</i></a>, <a href="#Width"><i>Width</i></a>, <a href="#Height"><i>Height</i></a>, <a href="#FatherWindow"><i>FatherWindow</i></a>, <a href="#Mode"><i>Mode</i></a>, <a href="#Machine"><i>Machine</i></a> : <a href="#WindowHandle"><i>WindowHandle</i></a>)</code></p>
</div>
<div data-if="c" style="display:none;">
<p>
<code>Herror <b>T_open_window</b>(const Htuple <a href="#Row"><i>Row</i></a>, const Htuple <a href="#Column"><i>Column</i></a>, const Htuple <a href="#Width"><i>Width</i></a>, const Htuple <a href="#Height"><i>Height</i></a>, const Htuple <a href="#FatherWindow"><i>FatherWindow</i></a>, const Htuple <a href="#Mode"><i>Mode</i></a>, const Htuple <a href="#Machine"><i>Machine</i></a>, Htuple* <a href="#WindowHandle"><i>WindowHandle</i></a>)</code></p>
</div>
<div data-if="cpp" style="display:none;">
<p>
<code>void <b>OpenWindow</b>(const HTuple&amp; <a href="#Row"><i>Row</i></a>, const HTuple&amp; <a href="#Column"><i>Column</i></a>, const HTuple&amp; <a href="#Width"><i>Width</i></a>, const HTuple&amp; <a href="#Height"><i>Height</i></a>, const HTuple&amp; <a href="#FatherWindow"><i>FatherWindow</i></a>, const HTuple&amp; <a href="#Mode"><i>Mode</i></a>, const HTuple&amp; <a href="#Machine"><i>Machine</i></a>, HTuple* <a href="#WindowHandle"><i>WindowHandle</i></a>)</code></p>
<p>
<code>void <a href="HWindow.html">HWindow</a>::<b>HWindow</b>(Hlong <a href="#Row"><i>Row</i></a>, Hlong <a href="#Column"><i>Column</i></a>, Hlong <a href="#Width"><i>Width</i></a>, Hlong <a href="#Height"><i>Height</i></a>, const HTuple&amp; <a href="#FatherWindow"><i>FatherWindow</i></a>, const HString&amp; <a href="#Mode"><i>Mode</i></a>, const HString&amp; <a href="#Machine"><i>Machine</i></a>)</code></p>
<p>
<code>void <a href="HWindow.html">HWindow</a>::<b>HWindow</b>(Hlong <a href="#Row"><i>Row</i></a>, Hlong <a href="#Column"><i>Column</i></a>, Hlong <a href="#Width"><i>Width</i></a>, Hlong <a href="#Height"><i>Height</i></a>, void* <a href="#FatherWindow"><i>FatherWindow</i></a>, const HString&amp; <a href="#Mode"><i>Mode</i></a>, const HString&amp; <a href="#Machine"><i>Machine</i></a>)</code></p>
<p>
<code>void <a href="HWindow.html">HWindow</a>::<b>HWindow</b>(Hlong <a href="#Row"><i>Row</i></a>, Hlong <a href="#Column"><i>Column</i></a>, Hlong <a href="#Width"><i>Width</i></a>, Hlong <a href="#Height"><i>Height</i></a>, void* <a href="#FatherWindow"><i>FatherWindow</i></a>, const char* <a href="#Mode"><i>Mode</i></a>, const char* <a href="#Machine"><i>Machine</i></a>)</code></p>
<p>
<code>void <a href="HWindow.html">HWindow</a>::<b>HWindow</b>(Hlong <a href="#Row"><i>Row</i></a>, Hlong <a href="#Column"><i>Column</i></a>, Hlong <a href="#Width"><i>Width</i></a>, Hlong <a href="#Height"><i>Height</i></a>, void* <a href="#FatherWindow"><i>FatherWindow</i></a>, const wchar_t* <a href="#Mode"><i>Mode</i></a>, const wchar_t* <a href="#Machine"><i>Machine</i></a>)  <span class="signnote">
            (
            Windows only)
          </span></code></p>
<p>
<code>void <a href="HWindow.html">HWindow</a>::<b>OpenWindow</b>(Hlong <a href="#Row"><i>Row</i></a>, Hlong <a href="#Column"><i>Column</i></a>, Hlong <a href="#Width"><i>Width</i></a>, Hlong <a href="#Height"><i>Height</i></a>, const HTuple&amp; <a href="#FatherWindow"><i>FatherWindow</i></a>, const HString&amp; <a href="#Mode"><i>Mode</i></a>, const HString&amp; <a href="#Machine"><i>Machine</i></a>)</code></p>
<p>
<code>void <a href="HWindow.html">HWindow</a>::<b>OpenWindow</b>(Hlong <a href="#Row"><i>Row</i></a>, Hlong <a href="#Column"><i>Column</i></a>, Hlong <a href="#Width"><i>Width</i></a>, Hlong <a href="#Height"><i>Height</i></a>, void* <a href="#FatherWindow"><i>FatherWindow</i></a>, const HString&amp; <a href="#Mode"><i>Mode</i></a>, const HString&amp; <a href="#Machine"><i>Machine</i></a>)</code></p>
<p>
<code>void <a href="HWindow.html">HWindow</a>::<b>OpenWindow</b>(Hlong <a href="#Row"><i>Row</i></a>, Hlong <a href="#Column"><i>Column</i></a>, Hlong <a href="#Width"><i>Width</i></a>, Hlong <a href="#Height"><i>Height</i></a>, void* <a href="#FatherWindow"><i>FatherWindow</i></a>, const char* <a href="#Mode"><i>Mode</i></a>, const char* <a href="#Machine"><i>Machine</i></a>)</code></p>
<p>
<code>void <a href="HWindow.html">HWindow</a>::<b>OpenWindow</b>(Hlong <a href="#Row"><i>Row</i></a>, Hlong <a href="#Column"><i>Column</i></a>, Hlong <a href="#Width"><i>Width</i></a>, Hlong <a href="#Height"><i>Height</i></a>, void* <a href="#FatherWindow"><i>FatherWindow</i></a>, const wchar_t* <a href="#Mode"><i>Mode</i></a>, const wchar_t* <a href="#Machine"><i>Machine</i></a>)  <span class="signnote">
            (
            Windows only)
          </span></code></p>
</div>
<div data-if="com" style="display:none;"></div>
<div data-if="dotnet" style="display:none;">
<p>
<code>static void <a href="HOperatorSet.html">HOperatorSet</a>.<b>OpenWindow</b>(<a href="HTuple.html">HTuple</a> <a href="#Row"><i>row</i></a>, <a href="HTuple.html">HTuple</a> <a href="#Column"><i>column</i></a>, <a href="HTuple.html">HTuple</a> <a href="#Width"><i>width</i></a>, <a href="HTuple.html">HTuple</a> <a href="#Height"><i>height</i></a>, <a href="HTuple.html">HTuple</a> <a href="#FatherWindow"><i>fatherWindow</i></a>, <a href="HTuple.html">HTuple</a> <a href="#Mode"><i>mode</i></a>, <a href="HTuple.html">HTuple</a> <a href="#Machine"><i>machine</i></a>, out <a href="HTuple.html">HTuple</a> <a href="#WindowHandle"><i>windowHandle</i></a>)</code></p>
<p>
<code>public <a href="HWindow.html">HWindow</a>(int <a href="#Row"><i>row</i></a>, int <a href="#Column"><i>column</i></a>, int <a href="#Width"><i>width</i></a>, int <a href="#Height"><i>height</i></a>, <a href="HTuple.html">HTuple</a> <a href="#FatherWindow"><i>fatherWindow</i></a>, string <a href="#Mode"><i>mode</i></a>, string <a href="#Machine"><i>machine</i></a>)</code></p>
<p>
<code>public <a href="HWindow.html">HWindow</a>(int <a href="#Row"><i>row</i></a>, int <a href="#Column"><i>column</i></a>, int <a href="#Width"><i>width</i></a>, int <a href="#Height"><i>height</i></a>, IntPtr <a href="#FatherWindow"><i>fatherWindow</i></a>, string <a href="#Mode"><i>mode</i></a>, string <a href="#Machine"><i>machine</i></a>)</code></p>
<p>
<code>void <a href="HWindow.html">HWindow</a>.<b>OpenWindow</b>(int <a href="#Row"><i>row</i></a>, int <a href="#Column"><i>column</i></a>, int <a href="#Width"><i>width</i></a>, int <a href="#Height"><i>height</i></a>, <a href="HTuple.html">HTuple</a> <a href="#FatherWindow"><i>fatherWindow</i></a>, string <a href="#Mode"><i>mode</i></a>, string <a href="#Machine"><i>machine</i></a>)</code></p>
<p>
<code>void <a href="HWindow.html">HWindow</a>.<b>OpenWindow</b>(int <a href="#Row"><i>row</i></a>, int <a href="#Column"><i>column</i></a>, int <a href="#Width"><i>width</i></a>, int <a href="#Height"><i>height</i></a>, IntPtr <a href="#FatherWindow"><i>fatherWindow</i></a>, string <a href="#Mode"><i>mode</i></a>, string <a href="#Machine"><i>machine</i></a>)</code></p>
</div>
<div data-if="python" style="display:none;">
<p>
<code>def <b>open_window</b>(<a href="#Row"><i>row</i></a>: int, <a href="#Column"><i>column</i></a>: int, <a href="#Width"><i>width</i></a>: int, <a href="#Height"><i>height</i></a>: int, <a href="#FatherWindow"><i>father_window</i></a>: Union[int, str], <a href="#Mode"><i>mode</i></a>: str, <a href="#Machine"><i>machine</i></a>: str) -&gt; HHandle</code></p>
</div>
<h2 id="sec_description">描述</h2>
<p><code><span data-if="hdevelop" style="display:inline">open_window</span><span data-if="c" style="display:none">open_window</span><span data-if="cpp" style="display:none">OpenWindow</span><span data-if="com" style="display:none">OpenWindow</span><span data-if="dotnet" style="display:none">OpenWindow</span><span data-if="python" style="display:none">open_window</span></code> opens a new window, which can be
used to perform output of gray value data, regions, graphics as well as to
perform textual output. All output (<a href="disp_region.html"><code><span data-if="hdevelop" style="display:inline">disp_region</span><span data-if="c" style="display:none">disp_region</span><span data-if="cpp" style="display:none">DispRegion</span><span data-if="com" style="display:none">DispRegion</span><span data-if="dotnet" style="display:none">DispRegion</span><span data-if="python" style="display:none">disp_region</span></code></a>,
<a href="disp_image.html"><code><span data-if="hdevelop" style="display:inline">disp_image</span><span data-if="c" style="display:none">disp_image</span><span data-if="cpp" style="display:none">DispImage</span><span data-if="com" style="display:none">DispImage</span><span data-if="dotnet" style="display:none">DispImage</span><span data-if="python" style="display:none">disp_image</span></code></a>,
etc.) is redirected to this window, if the same logical window number
<a href="#WindowHandle"><i><code><span data-if="hdevelop" style="display:inline">WindowHandle</span><span data-if="c" style="display:none">WindowHandle</span><span data-if="cpp" style="display:none">WindowHandle</span><span data-if="com" style="display:none">WindowHandle</span><span data-if="dotnet" style="display:none">windowHandle</span><span data-if="python" style="display:none">window_handle</span></code></i></a> is used.
</p>
<p>The background of the created window is set to black in advance and it
has a white border, which is 2 pixels wide (see also
<a href="set_window_attr.html"><code><span data-if="hdevelop" style="display:inline">set_window_attr(::'border_width',&lt;Width&gt;:)</span><span data-if="c" style="display:none">set_window_attr("border_width",&lt;Width&gt;)</span><span data-if="cpp" style="display:none">SetWindowAttr("border_width",&lt;Width&gt;)</span><span data-if="com" style="display:none">SetWindowAttr("border_width",&lt;Width&gt;)</span><span data-if="dotnet" style="display:none">SetWindowAttr("border_width",&lt;Width&gt;)</span><span data-if="python" style="display:none">set_window_attr("border_width",&lt;Width&gt;)</span></code></a>).
</p>
<p>Certain parameters used for the editing of output data are assigned to a window.
These parameters are considered during the output itself (e.g., with
<a href="disp_image.html"><code><span data-if="hdevelop" style="display:inline">disp_image</span><span data-if="c" style="display:none">disp_image</span><span data-if="cpp" style="display:none">DispImage</span><span data-if="com" style="display:none">DispImage</span><span data-if="dotnet" style="display:none">DispImage</span><span data-if="python" style="display:none">disp_image</span></code></a> or <a href="disp_region.html"><code><span data-if="hdevelop" style="display:inline">disp_region</span><span data-if="c" style="display:none">disp_region</span><span data-if="cpp" style="display:none">DispRegion</span><span data-if="com" style="display:none">DispRegion</span><span data-if="dotnet" style="display:none">DispRegion</span><span data-if="python" style="display:none">disp_region</span></code></a>).
They are not specified by an output operator, but by “configuration
operators”. If you want to set, e.g., the color red for the output of regions,
you have to call <a href="set_color.html"><code><span data-if="hdevelop" style="display:inline">set_color(::WindowHandle,'red':)</span><span data-if="c" style="display:none">set_color(WindowHandle,"red")</span><span data-if="cpp" style="display:none">SetColor(WindowHandle,"red")</span><span data-if="com" style="display:none">SetColor(WindowHandle,"red")</span><span data-if="dotnet" style="display:none">SetColor(WindowHandle,"red")</span><span data-if="python" style="display:none">set_color(WindowHandle,"red")</span></code></a> before calling
<a href="disp_region.html"><code><span data-if="hdevelop" style="display:inline">disp_region</span><span data-if="c" style="display:none">disp_region</span><span data-if="cpp" style="display:none">DispRegion</span><span data-if="com" style="display:none">DispRegion</span><span data-if="dotnet" style="display:none">DispRegion</span><span data-if="python" style="display:none">disp_region</span></code></a>. These parameters are always set for the
window with the logical window number <a href="#WindowHandle"><i><code><span data-if="hdevelop" style="display:inline">WindowHandle</span><span data-if="c" style="display:none">WindowHandle</span><span data-if="cpp" style="display:none">WindowHandle</span><span data-if="com" style="display:none">WindowHandle</span><span data-if="dotnet" style="display:none">windowHandle</span><span data-if="python" style="display:none">window_handle</span></code></i></a> and remain
assigned to a window as long as they will be overwritten.
You may use the following configuration operators:
</p>
<ul>
<li>
<p> Output of gray values:
<a href="set_paint.html"><code><span data-if="hdevelop" style="display:inline">set_paint</span><span data-if="c" style="display:none">set_paint</span><span data-if="cpp" style="display:none">SetPaint</span><span data-if="com" style="display:none">SetPaint</span><span data-if="dotnet" style="display:none">SetPaint</span><span data-if="python" style="display:none">set_paint</span></code></a>, <a href="set_lut.html"><code><span data-if="hdevelop" style="display:inline">set_lut</span><span data-if="c" style="display:none">set_lut</span><span data-if="cpp" style="display:none">SetLut</span><span data-if="com" style="display:none">SetLut</span><span data-if="dotnet" style="display:none">SetLut</span><span data-if="python" style="display:none">set_lut</span></code></a>
</p>
</li>
<li>
<p> Regions:
<a href="set_color.html"><code><span data-if="hdevelop" style="display:inline">set_color</span><span data-if="c" style="display:none">set_color</span><span data-if="cpp" style="display:none">SetColor</span><span data-if="com" style="display:none">SetColor</span><span data-if="dotnet" style="display:none">SetColor</span><span data-if="python" style="display:none">set_color</span></code></a>, <a href="set_rgb.html"><code><span data-if="hdevelop" style="display:inline">set_rgb</span><span data-if="c" style="display:none">set_rgb</span><span data-if="cpp" style="display:none">SetRgb</span><span data-if="com" style="display:none">SetRgb</span><span data-if="dotnet" style="display:none">SetRgb</span><span data-if="python" style="display:none">set_rgb</span></code></a>, <a href="set_hsi.html"><code><span data-if="hdevelop" style="display:inline">set_hsi</span><span data-if="c" style="display:none">set_hsi</span><span data-if="cpp" style="display:none">SetHsi</span><span data-if="com" style="display:none">SetHsi</span><span data-if="dotnet" style="display:none">SetHsi</span><span data-if="python" style="display:none">set_hsi</span></code></a>,
<a href="set_gray.html"><code><span data-if="hdevelop" style="display:inline">set_gray</span><span data-if="c" style="display:none">set_gray</span><span data-if="cpp" style="display:none">SetGray</span><span data-if="com" style="display:none">SetGray</span><span data-if="dotnet" style="display:none">SetGray</span><span data-if="python" style="display:none">set_gray</span></code></a>,
<a href="set_shape.html"><code><span data-if="hdevelop" style="display:inline">set_shape</span><span data-if="c" style="display:none">set_shape</span><span data-if="cpp" style="display:none">SetShape</span><span data-if="com" style="display:none">SetShape</span><span data-if="dotnet" style="display:none">SetShape</span><span data-if="python" style="display:none">set_shape</span></code></a>, <a href="set_line_width.html"><code><span data-if="hdevelop" style="display:inline">set_line_width</span><span data-if="c" style="display:none">set_line_width</span><span data-if="cpp" style="display:none">SetLineWidth</span><span data-if="com" style="display:none">SetLineWidth</span><span data-if="dotnet" style="display:none">SetLineWidth</span><span data-if="python" style="display:none">set_line_width</span></code></a>, <a href="set_insert.html"><code><span data-if="hdevelop" style="display:inline">set_insert</span><span data-if="c" style="display:none">set_insert</span><span data-if="cpp" style="display:none">SetInsert</span><span data-if="com" style="display:none">SetInsert</span><span data-if="dotnet" style="display:none">SetInsert</span><span data-if="python" style="display:none">set_insert</span></code></a>,
<a href="set_line_style.html"><code><span data-if="hdevelop" style="display:inline">set_line_style</span><span data-if="c" style="display:none">set_line_style</span><span data-if="cpp" style="display:none">SetLineStyle</span><span data-if="com" style="display:none">SetLineStyle</span><span data-if="dotnet" style="display:none">SetLineStyle</span><span data-if="python" style="display:none">set_line_style</span></code></a>, <a href="set_draw.html"><code><span data-if="hdevelop" style="display:inline">set_draw</span><span data-if="c" style="display:none">set_draw</span><span data-if="cpp" style="display:none">SetDraw</span><span data-if="com" style="display:none">SetDraw</span><span data-if="dotnet" style="display:none">SetDraw</span><span data-if="python" style="display:none">set_draw</span></code></a>
</p>
</li>
<li>
<p> Image clipping:
<a href="set_part.html"><code><span data-if="hdevelop" style="display:inline">set_part</span><span data-if="c" style="display:none">set_part</span><span data-if="cpp" style="display:none">SetPart</span><span data-if="com" style="display:none">SetPart</span><span data-if="dotnet" style="display:none">SetPart</span><span data-if="python" style="display:none">set_part</span></code></a>
</p>
</li>
<li>
<p> Text:
<a href="set_font.html"><code><span data-if="hdevelop" style="display:inline">set_font</span><span data-if="c" style="display:none">set_font</span><span data-if="cpp" style="display:none">SetFont</span><span data-if="com" style="display:none">SetFont</span><span data-if="dotnet" style="display:none">SetFont</span><span data-if="python" style="display:none">set_font</span></code></a>
</p>
</li>
</ul>
<p>You may query current set values by calling operators like
<a href="get_shape.html"><code><span data-if="hdevelop" style="display:inline">get_shape</span><span data-if="c" style="display:none">get_shape</span><span data-if="cpp" style="display:none">GetShape</span><span data-if="com" style="display:none">GetShape</span><span data-if="dotnet" style="display:none">GetShape</span><span data-if="python" style="display:none">get_shape</span></code></a>.
As some parameters are specified through the hardware (Resolution/Colors),
you may query current available resources by calling <a href="query_color.html"><code><span data-if="hdevelop" style="display:inline">query_color</span><span data-if="c" style="display:none">query_color</span><span data-if="cpp" style="display:none">QueryColor</span><span data-if="com" style="display:none">QueryColor</span><span data-if="dotnet" style="display:none">QueryColor</span><span data-if="python" style="display:none">query_color</span></code></a>.
</p>
<p>The origin of the coordinate system of the window resides in the
upper left corner (coordinates: (0,0)). The row index grows
downward (maximal: <a href="#Height"><i><code><span data-if="hdevelop" style="display:inline">Height</span><span data-if="c" style="display:none">Height</span><span data-if="cpp" style="display:none">Height</span><span data-if="com" style="display:none">Height</span><span data-if="dotnet" style="display:none">height</span><span data-if="python" style="display:none">height</span></code></i></a>-1), the column index grows
to the right (maximal: <a href="#Width"><i><code><span data-if="hdevelop" style="display:inline">Width</span><span data-if="c" style="display:none">Width</span><span data-if="cpp" style="display:none">Width</span><span data-if="com" style="display:none">Width</span><span data-if="dotnet" style="display:none">width</span><span data-if="python" style="display:none">width</span></code></i></a>-1).
You have to keep in mind, that the range of the coordinate system
is independent of the window size. It is specified only through
the image format (see <a href="reset_obj_db.html"><code><span data-if="hdevelop" style="display:inline">reset_obj_db</span><span data-if="c" style="display:none">reset_obj_db</span><span data-if="cpp" style="display:none">ResetObjDb</span><span data-if="com" style="display:none">ResetObjDb</span><span data-if="dotnet" style="display:none">ResetObjDb</span><span data-if="python" style="display:none">reset_obj_db</span></code></a>).
</p>
<p>The parameter <a href="#Machine"><i><code><span data-if="hdevelop" style="display:inline">Machine</span><span data-if="c" style="display:none">Machine</span><span data-if="cpp" style="display:none">Machine</span><span data-if="com" style="display:none">Machine</span><span data-if="dotnet" style="display:none">machine</span><span data-if="python" style="display:none">machine</span></code></i></a> indicates the name of the computer,
which has to open the window. In case of a X-window, TCP-IP only sets
the name, DEC-Net sets in addition a colon behind the name. The
“server” resp. the “screen” are not specified.
If the empty string is passed the environment variable
DISPLAY is used. It indicates the target computer. At this the name
is indicated in common syntax &lt;Host&gt;:0.0.
</p>
<p>For windows of type <i><span data-if="hdevelop" style="display:inline">'WIN32-Window'</span><span data-if="c" style="display:none">"WIN32-Window"</span><span data-if="cpp" style="display:none">"WIN32-Window"</span><span data-if="com" style="display:none">"WIN32-Window"</span><span data-if="dotnet" style="display:none">"WIN32-Window"</span><span data-if="python" style="display:none">"WIN32-Window"</span></i> and <i><span data-if="hdevelop" style="display:inline">'X-Window'</span><span data-if="c" style="display:none">"X-Window"</span><span data-if="cpp" style="display:none">"X-Window"</span><span data-if="com" style="display:none">"X-Window"</span><span data-if="dotnet" style="display:none">"X-Window"</span><span data-if="python" style="display:none">"X-Window"</span></i>
the parameter <a href="#FatherWindow"><i><code><span data-if="hdevelop" style="display:inline">FatherWindow</span><span data-if="c" style="display:none">FatherWindow</span><span data-if="cpp" style="display:none">FatherWindow</span><span data-if="com" style="display:none">FatherWindow</span><span data-if="dotnet" style="display:none">fatherWindow</span><span data-if="python" style="display:none">father_window</span></code></i></a> can be used to determine the father
window for the window to be opened. In case the control 'father' is set via
<a href="set_check.html"><code><span data-if="hdevelop" style="display:inline">set_check</span><span data-if="c" style="display:none">set_check</span><span data-if="cpp" style="display:none">SetCheck</span><span data-if="com" style="display:none">SetCheck</span><span data-if="dotnet" style="display:none">SetCheck</span><span data-if="python" style="display:none">set_check</span></code></a>, <a href="#FatherWindow"><i><code><span data-if="hdevelop" style="display:inline">FatherWindow</span><span data-if="c" style="display:none">FatherWindow</span><span data-if="cpp" style="display:none">FatherWindow</span><span data-if="com" style="display:none">FatherWindow</span><span data-if="dotnet" style="display:none">fatherWindow</span><span data-if="python" style="display:none">father_window</span></code></i></a> must be the ID of a HALCON window,
otherwise (<a href="set_check.html"><code><span data-if="hdevelop" style="display:inline">set_check(::'~father':)</span><span data-if="c" style="display:none">set_check("~father")</span><span data-if="cpp" style="display:none">SetCheck("~father")</span><span data-if="com" style="display:none">SetCheck("~father")</span><span data-if="dotnet" style="display:none">SetCheck("~father")</span><span data-if="python" style="display:none">set_check("~father")</span></code></a>)
it can also be the ID of an operating system window. If <a href="#FatherWindow"><i><code><span data-if="hdevelop" style="display:inline">FatherWindow</span><span data-if="c" style="display:none">FatherWindow</span><span data-if="cpp" style="display:none">FatherWindow</span><span data-if="com" style="display:none">FatherWindow</span><span data-if="dotnet" style="display:none">fatherWindow</span><span data-if="python" style="display:none">father_window</span></code></i></a>
is passed the value 0 or 'root', then under Windows and Unix-like systems the
desktop and the root window become the father window, respectively. In this
case, the value of the control 'father' (set via <a href="set_check.html"><code><span data-if="hdevelop" style="display:inline">set_check</span><span data-if="c" style="display:none">set_check</span><span data-if="cpp" style="display:none">SetCheck</span><span data-if="com" style="display:none">SetCheck</span><span data-if="dotnet" style="display:none">SetCheck</span><span data-if="python" style="display:none">set_check</span></code></a>) is
irrelevant. The caller must ensure that <a href="#FatherWindow"><i><code><span data-if="hdevelop" style="display:inline">FatherWindow</span><span data-if="c" style="display:none">FatherWindow</span><span data-if="cpp" style="display:none">FatherWindow</span><span data-if="com" style="display:none">FatherWindow</span><span data-if="dotnet" style="display:none">fatherWindow</span><span data-if="python" style="display:none">father_window</span></code></i></a> is a valid
handle and not destroyed as long as the embedded HALCON window is used.
</p>
<p>You may use the value “-1” for parameters <a href="#Width"><i><code><span data-if="hdevelop" style="display:inline">Width</span><span data-if="c" style="display:none">Width</span><span data-if="cpp" style="display:none">Width</span><span data-if="com" style="display:none">Width</span><span data-if="dotnet" style="display:none">width</span><span data-if="python" style="display:none">width</span></code></i></a> and
<a href="#Height"><i><code><span data-if="hdevelop" style="display:inline">Height</span><span data-if="c" style="display:none">Height</span><span data-if="cpp" style="display:none">Height</span><span data-if="com" style="display:none">Height</span><span data-if="dotnet" style="display:none">height</span><span data-if="python" style="display:none">height</span></code></i></a>. This means, that the according value has to be
specified automatically. In particular this is of importance, if
the proportion of pixels is not 1.0 (see <a href="set_system.html"><code><span data-if="hdevelop" style="display:inline">set_system</span><span data-if="c" style="display:none">set_system</span><span data-if="cpp" style="display:none">SetSystem</span><span data-if="com" style="display:none">SetSystem</span><span data-if="dotnet" style="display:none">SetSystem</span><span data-if="python" style="display:none">set_system</span></code></a>):
Is one of the two parameters set to “-1”, it will be specified
through the size which results out of the proportion of pixels.
Are both parameters set to “-1”, they will be set to the maximum
image format, which is currently used (further information about the
currently used maximum image format can be found in the description
of <a href="get_system.html"><code><span data-if="hdevelop" style="display:inline">get_system</span><span data-if="c" style="display:none">get_system</span><span data-if="cpp" style="display:none">GetSystem</span><span data-if="com" style="display:none">GetSystem</span><span data-if="dotnet" style="display:none">GetSystem</span><span data-if="python" style="display:none">get_system</span></code></a> using “width” or “height”).
</p>
<p>Position and size of a window may change during runtime of a program.
This may be achieved by calling <a href="set_window_extents.html"><code><span data-if="hdevelop" style="display:inline">set_window_extents</span><span data-if="c" style="display:none">set_window_extents</span><span data-if="cpp" style="display:none">SetWindowExtents</span><span data-if="com" style="display:none">SetWindowExtents</span><span data-if="dotnet" style="display:none">SetWindowExtents</span><span data-if="python" style="display:none">set_window_extents</span></code></a>, but
also through external interferences (window manager). In the latter
case 该算子 <a href="set_window_extents.html"><code><span data-if="hdevelop" style="display:inline">set_window_extents</span><span data-if="c" style="display:none">set_window_extents</span><span data-if="cpp" style="display:none">SetWindowExtents</span><span data-if="com" style="display:none">SetWindowExtents</span><span data-if="dotnet" style="display:none">SetWindowExtents</span><span data-if="python" style="display:none">set_window_extents</span></code></a> is provided.
</p>
<p>Opening a window causes the assignment of a called default font.
It is used in connection with operators like <a href="write_string.html"><code><span data-if="hdevelop" style="display:inline">write_string</span><span data-if="c" style="display:none">write_string</span><span data-if="cpp" style="display:none">WriteString</span><span data-if="com" style="display:none">WriteString</span><span data-if="dotnet" style="display:none">WriteString</span><span data-if="python" style="display:none">write_string</span></code></a>
and you may overwrite it by performing <a href="set_font.html"><code><span data-if="hdevelop" style="display:inline">set_font</span><span data-if="c" style="display:none">set_font</span><span data-if="cpp" style="display:none">SetFont</span><span data-if="com" style="display:none">SetFont</span><span data-if="dotnet" style="display:none">SetFont</span><span data-if="python" style="display:none">set_font</span></code></a> after
calling <code><span data-if="hdevelop" style="display:inline">open_window</span><span data-if="c" style="display:none">open_window</span><span data-if="cpp" style="display:none">OpenWindow</span><span data-if="com" style="display:none">OpenWindow</span><span data-if="dotnet" style="display:none">OpenWindow</span><span data-if="python" style="display:none">open_window</span></code>. On the other hand you have the
possibility to specify a default font by calling
<a href="set_system.html"><code><span data-if="hdevelop" style="display:inline">set_system(::'default_font',&lt;Fontname&gt;:)</span><span data-if="c" style="display:none">set_system("default_font",&lt;Fontname&gt;)</span><span data-if="cpp" style="display:none">SetSystem("default_font",&lt;Fontname&gt;)</span><span data-if="com" style="display:none">SetSystem("default_font",&lt;Fontname&gt;)</span><span data-if="dotnet" style="display:none">SetSystem("default_font",&lt;Fontname&gt;)</span><span data-if="python" style="display:none">set_system("default_font",&lt;Fontname&gt;)</span></code></a> before opening
a window (and all following windows; see also <a href="query_font.html"><code><span data-if="hdevelop" style="display:inline">query_font</span><span data-if="c" style="display:none">query_font</span><span data-if="cpp" style="display:none">QueryFont</span><span data-if="com" style="display:none">QueryFont</span><span data-if="dotnet" style="display:none">QueryFont</span><span data-if="python" style="display:none">query_font</span></code></a>).
</p>
<p>You may set the color of graphics and font, which is used for output
operators like <a href="disp_region.html"><code><span data-if="hdevelop" style="display:inline">disp_region</span><span data-if="c" style="display:none">disp_region</span><span data-if="cpp" style="display:none">DispRegion</span><span data-if="com" style="display:none">DispRegion</span><span data-if="dotnet" style="display:none">DispRegion</span><span data-if="python" style="display:none">disp_region</span></code></a> or <a href="disp_circle.html"><code><span data-if="hdevelop" style="display:inline">disp_circle</span><span data-if="c" style="display:none">disp_circle</span><span data-if="cpp" style="display:none">DispCircle</span><span data-if="com" style="display:none">DispCircle</span><span data-if="dotnet" style="display:none">DispCircle</span><span data-if="python" style="display:none">disp_circle</span></code></a>, by
calling <a href="set_rgb.html"><code><span data-if="hdevelop" style="display:inline">set_rgb</span><span data-if="c" style="display:none">set_rgb</span><span data-if="cpp" style="display:none">SetRgb</span><span data-if="com" style="display:none">SetRgb</span><span data-if="dotnet" style="display:none">SetRgb</span><span data-if="python" style="display:none">set_rgb</span></code></a>, <a href="set_hsi.html"><code><span data-if="hdevelop" style="display:inline">set_hsi</span><span data-if="c" style="display:none">set_hsi</span><span data-if="cpp" style="display:none">SetHsi</span><span data-if="com" style="display:none">SetHsi</span><span data-if="dotnet" style="display:none">SetHsi</span><span data-if="python" style="display:none">set_hsi</span></code></a> or <a href="set_gray.html"><code><span data-if="hdevelop" style="display:inline">set_gray</span><span data-if="c" style="display:none">set_gray</span><span data-if="cpp" style="display:none">SetGray</span><span data-if="com" style="display:none">SetGray</span><span data-if="dotnet" style="display:none">SetGray</span><span data-if="python" style="display:none">set_gray</span></code></a>.
Calling <a href="set_insert.html"><code><span data-if="hdevelop" style="display:inline">set_insert</span><span data-if="c" style="display:none">set_insert</span><span data-if="cpp" style="display:none">SetInsert</span><span data-if="com" style="display:none">SetInsert</span><span data-if="dotnet" style="display:none">SetInsert</span><span data-if="python" style="display:none">set_insert</span></code></a> specifies how graphics is combined
with the content of the image repeat memory.
Thereto you may achieve by calling, e.g., <a href="set_insert.html"><code><span data-if="hdevelop" style="display:inline">set_insert</span><span data-if="c" style="display:none">set_insert</span><span data-if="cpp" style="display:none">SetInsert</span><span data-if="com" style="display:none">SetInsert</span><span data-if="dotnet" style="display:none">SetInsert</span><span data-if="python" style="display:none">set_insert</span></code></a>(::'not':)
to eliminate the font after writing text twice at the same position.
</p>
<p>Normally every output (e.g., <a href="disp_image.html"><code><span data-if="hdevelop" style="display:inline">disp_image</span><span data-if="c" style="display:none">disp_image</span><span data-if="cpp" style="display:none">DispImage</span><span data-if="com" style="display:none">DispImage</span><span data-if="dotnet" style="display:none">DispImage</span><span data-if="python" style="display:none">disp_image</span></code></a>, <a href="disp_region.html"><code><span data-if="hdevelop" style="display:inline">disp_region</span><span data-if="c" style="display:none">disp_region</span><span data-if="cpp" style="display:none">DispRegion</span><span data-if="com" style="display:none">DispRegion</span><span data-if="dotnet" style="display:none">DispRegion</span><span data-if="python" style="display:none">disp_region</span></code></a>,
<a href="disp_circle.html"><code><span data-if="hdevelop" style="display:inline">disp_circle</span><span data-if="c" style="display:none">disp_circle</span><span data-if="cpp" style="display:none">DispCircle</span><span data-if="com" style="display:none">DispCircle</span><span data-if="dotnet" style="display:none">DispCircle</span><span data-if="python" style="display:none">disp_circle</span></code></a>, etc.) in a window is terminated by a called
“flush”. This causes the data to be fully visible on the display after
termination of the output operator. But this is not necessary in all
cases, in particular if there are permanently output tasks or if there
is a mouse procedure active. Therefore it is more favorable (i.e., more
rapid) to store the data until sufficient data is available. You may
stop this behavior by calling <a href="set_system.html"><code><span data-if="hdevelop" style="display:inline">set_system(::'flush_graphic','false':)</span><span data-if="c" style="display:none">set_system("flush_graphic","false")</span><span data-if="cpp" style="display:none">SetSystem("flush_graphic","false")</span><span data-if="com" style="display:none">SetSystem("flush_graphic","false")</span><span data-if="dotnet" style="display:none">SetSystem("flush_graphic","false")</span><span data-if="python" style="display:none">set_system("flush_graphic","false")</span></code></a>.
</p>
<p>The content of windows is saved (in case it is supported by special driver
software); i.e., it is preserved, also if the window is hidden by other
windows. But this is not necessary in all cases:
If the content of a window is built up permanently new
(<a href="copy_rectangle.html"><code><span data-if="hdevelop" style="display:inline">copy_rectangle</span><span data-if="c" style="display:none">copy_rectangle</span><span data-if="cpp" style="display:none">CopyRectangle</span><span data-if="com" style="display:none">CopyRectangle</span><span data-if="dotnet" style="display:none">CopyRectangle</span><span data-if="python" style="display:none">copy_rectangle</span></code></a>), you may suppress the security mechanism for
that and hence you can save the necessary memory.
This is done by calling <a href="set_system.html"><code><span data-if="hdevelop" style="display:inline">set_system(::'backing_store','false':)</span><span data-if="c" style="display:none">set_system("backing_store","false")</span><span data-if="cpp" style="display:none">SetSystem("backing_store","false")</span><span data-if="com" style="display:none">SetSystem("backing_store","false")</span><span data-if="dotnet" style="display:none">SetSystem("backing_store","false")</span><span data-if="python" style="display:none">set_system("backing_store","false")</span></code></a>
before opening a window. In doing so you save not only memory but also
time to compute. This is significant for the output of video clips
(see <a href="copy_rectangle.html"><code><span data-if="hdevelop" style="display:inline">copy_rectangle</span><span data-if="c" style="display:none">copy_rectangle</span><span data-if="cpp" style="display:none">CopyRectangle</span><span data-if="com" style="display:none">CopyRectangle</span><span data-if="dotnet" style="display:none">CopyRectangle</span><span data-if="python" style="display:none">copy_rectangle</span></code></a>).
</p>
<p>For graphical output (<a href="disp_image.html"><code><span data-if="hdevelop" style="display:inline">disp_image</span><span data-if="c" style="display:none">disp_image</span><span data-if="cpp" style="display:none">DispImage</span><span data-if="com" style="display:none">DispImage</span><span data-if="dotnet" style="display:none">DispImage</span><span data-if="python" style="display:none">disp_image</span></code></a>,<a href="disp_region.html"><code><span data-if="hdevelop" style="display:inline">disp_region</span><span data-if="c" style="display:none">disp_region</span><span data-if="cpp" style="display:none">DispRegion</span><span data-if="com" style="display:none">DispRegion</span><span data-if="dotnet" style="display:none">DispRegion</span><span data-if="python" style="display:none">disp_region</span></code></a>, etc.)
you may adjust the window by calling 该算子 <a href="set_part.html"><code><span data-if="hdevelop" style="display:inline">set_part</span><span data-if="c" style="display:none">set_part</span><span data-if="cpp" style="display:none">SetPart</span><span data-if="com" style="display:none">SetPart</span><span data-if="dotnet" style="display:none">SetPart</span><span data-if="python" style="display:none">set_part</span></code></a> in order
to represent a logical clipping of the image format.
In particular this implicates that you obtain this clipping (with appropriate
enlargement) of images and regions only.
</p>
<p>
Difference: graphical window - textual window
</p>
<ul>
<li>
<p> Using graphical windows the layout is not as variable as concerned
to textual windows.
</p>
</li>
<li>
<p> You may use textual windows for the input of user data only
(<a href="read_string.html"><code><span data-if="hdevelop" style="display:inline">read_string</span><span data-if="c" style="display:none">read_string</span><span data-if="cpp" style="display:none">ReadString</span><span data-if="com" style="display:none">ReadString</span><span data-if="dotnet" style="display:none">ReadString</span><span data-if="python" style="display:none">read_string</span></code></a>).
</p>
</li>
<li>
<p> During the output of images, regions and graphics a “zooming” is
performed using graphical windows: Independent on size and side ratio of
the window images are transformed in that way, that they are displayed
in the window by filling it completely.
On the opposite side using textual windows the output does not care
about the size of the window (only if clipping is necessary).
</p>
</li>
<li>
<p> Using graphical windows the coordinate system of the window corresponds
to the coordinate system of the image format. Using textual windows, its
coordinate system is always equal to the display coordinates independent
on image size.
</p>
</li>
</ul>
<p>The parameter <a href="#Mode"><i><code><span data-if="hdevelop" style="display:inline">Mode</span><span data-if="c" style="display:none">Mode</span><span data-if="cpp" style="display:none">Mode</span><span data-if="com" style="display:none">Mode</span><span data-if="dotnet" style="display:none">mode</span><span data-if="python" style="display:none">mode</span></code></i></a> determines the mode of the window.
It may have following values:
</p>
<dl class="generic">

<dt><b>'visible':</b></dt>
<dd><p>

Normal mode for graphical windows:
The window is created according to the parameters and all input and
output are possible.
</p></dd>

<dt><b>'invisible':</b></dt>
<dd><p>

Invisible windows are not displayed in the display. Parameters like
<a href="#Row"><i><code><span data-if="hdevelop" style="display:inline">Row</span><span data-if="c" style="display:none">Row</span><span data-if="cpp" style="display:none">Row</span><span data-if="com" style="display:none">Row</span><span data-if="dotnet" style="display:none">row</span><span data-if="python" style="display:none">row</span></code></i></a>, <a href="#Column"><i><code><span data-if="hdevelop" style="display:inline">Column</span><span data-if="c" style="display:none">Column</span><span data-if="cpp" style="display:none">Column</span><span data-if="com" style="display:none">Column</span><span data-if="dotnet" style="display:none">column</span><span data-if="python" style="display:none">column</span></code></i></a> and <a href="#FatherWindow"><i><code><span data-if="hdevelop" style="display:inline">FatherWindow</span><span data-if="c" style="display:none">FatherWindow</span><span data-if="cpp" style="display:none">FatherWindow</span><span data-if="com" style="display:none">FatherWindow</span><span data-if="dotnet" style="display:none">fatherWindow</span><span data-if="python" style="display:none">father_window</span></code></i></a> do not
have any meaning. Output to these windows has no effect. Input
(<a href="read_string.html"><code><span data-if="hdevelop" style="display:inline">read_string</span><span data-if="c" style="display:none">read_string</span><span data-if="cpp" style="display:none">ReadString</span><span data-if="com" style="display:none">ReadString</span><span data-if="dotnet" style="display:none">ReadString</span><span data-if="python" style="display:none">read_string</span></code></a>, mouse, etc.) is not possible.
You may use these windows to query representation parameter for an
output device without opening a (visible) window.
Common queries are, e.g., <a href="query_color.html"><code><span data-if="hdevelop" style="display:inline">query_color</span><span data-if="c" style="display:none">query_color</span><span data-if="cpp" style="display:none">QueryColor</span><span data-if="com" style="display:none">QueryColor</span><span data-if="dotnet" style="display:none">QueryColor</span><span data-if="python" style="display:none">query_color</span></code></a> and
<a href="get_string_extents.html"><code><span data-if="hdevelop" style="display:inline">get_string_extents</span><span data-if="c" style="display:none">get_string_extents</span><span data-if="cpp" style="display:none">GetStringExtents</span><span data-if="com" style="display:none">GetStringExtents</span><span data-if="dotnet" style="display:none">GetStringExtents</span><span data-if="python" style="display:none">get_string_extents</span></code></a>.
</p></dd>

<dt><b>'transparent':</b></dt>
<dd><p>

These windows are transparent: the window itself is not visible
(edge and background), but all the other operations are possible and all
output is displayed.
A common use for this mode is the creation of mouse sensitive regions.
</p></dd>

<dt><b>'buffer':</b></dt>
<dd><p>

These are also not visible windows. The output of images, regions and
graphics is not visible on the display, but is stored in memory.
Parameters like <a href="#Row"><i><code><span data-if="hdevelop" style="display:inline">Row</span><span data-if="c" style="display:none">Row</span><span data-if="cpp" style="display:none">Row</span><span data-if="com" style="display:none">Row</span><span data-if="dotnet" style="display:none">row</span><span data-if="python" style="display:none">row</span></code></i></a>, <a href="#Column"><i><code><span data-if="hdevelop" style="display:inline">Column</span><span data-if="c" style="display:none">Column</span><span data-if="cpp" style="display:none">Column</span><span data-if="com" style="display:none">Column</span><span data-if="dotnet" style="display:none">column</span><span data-if="python" style="display:none">column</span></code></i></a> and <a href="#FatherWindow"><i><code><span data-if="hdevelop" style="display:inline">FatherWindow</span><span data-if="c" style="display:none">FatherWindow</span><span data-if="cpp" style="display:none">FatherWindow</span><span data-if="com" style="display:none">FatherWindow</span><span data-if="dotnet" style="display:none">fatherWindow</span><span data-if="python" style="display:none">father_window</span></code></i></a>
do not have any meaning.
You may use buffer windows, if you prepare output (in the background)
and copy it finally with <a href="copy_rectangle.html"><code><span data-if="hdevelop" style="display:inline">copy_rectangle</span><span data-if="c" style="display:none">copy_rectangle</span><span data-if="cpp" style="display:none">CopyRectangle</span><span data-if="com" style="display:none">CopyRectangle</span><span data-if="dotnet" style="display:none">CopyRectangle</span><span data-if="python" style="display:none">copy_rectangle</span></code></a> in a visible
window.
Another usage might be the rapid processing of image regions during
interactive manipulations.
Textual input and mouse interaction are not possible in this mode.
</p></dd>
</dl>
<h2 id="sec_attention">注意</h2>
<p>You may keep in mind that parameters as <a href="#Row"><i><code><span data-if="hdevelop" style="display:inline">Row</span><span data-if="c" style="display:none">Row</span><span data-if="cpp" style="display:none">Row</span><span data-if="com" style="display:none">Row</span><span data-if="dotnet" style="display:none">row</span><span data-if="python" style="display:none">row</span></code></i></a>, <a href="#Column"><i><code><span data-if="hdevelop" style="display:inline">Column</span><span data-if="c" style="display:none">Column</span><span data-if="cpp" style="display:none">Column</span><span data-if="com" style="display:none">Column</span><span data-if="dotnet" style="display:none">column</span><span data-if="python" style="display:none">column</span></code></i></a>,
<a href="#Width"><i><code><span data-if="hdevelop" style="display:inline">Width</span><span data-if="c" style="display:none">Width</span><span data-if="cpp" style="display:none">Width</span><span data-if="com" style="display:none">Width</span><span data-if="dotnet" style="display:none">width</span><span data-if="python" style="display:none">width</span></code></i></a> and <a href="#Height"><i><code><span data-if="hdevelop" style="display:inline">Height</span><span data-if="c" style="display:none">Height</span><span data-if="cpp" style="display:none">Height</span><span data-if="com" style="display:none">Height</span><span data-if="dotnet" style="display:none">height</span><span data-if="python" style="display:none">height</span></code></i></a> are constrained by the output
device. If you specify a father window (<a href="#FatherWindow"><i><code><span data-if="hdevelop" style="display:inline">FatherWindow</span><span data-if="c" style="display:none">FatherWindow</span><span data-if="cpp" style="display:none">FatherWindow</span><span data-if="com" style="display:none">FatherWindow</span><span data-if="dotnet" style="display:none">fatherWindow</span><span data-if="python" style="display:none">father_window</span></code></i></a>  &lt; &gt;  'root') the coordinates are relative to this window.</p>
<h2 id="sec_execution">运行信息</h2>
<ul>
  <li>多线程类型:可重入(与非独占操作符并行运行)。</li>
<li>多线程作用域:全局(可以从任何线程调用)。</li>
  <li>未经并行化处理。</li>
</ul>
<p>This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.</p>
<h2 id="sec_parameters">参数表</h2>
  <div class="par">
<div class="parhead">
<span id="Row" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Row</span><span data-if="c" style="display:none">Row</span><span data-if="cpp" style="display:none">Row</span><span data-if="com" style="display:none">Row</span><span data-if="dotnet" style="display:none">row</span><span data-if="python" style="display:none">row</span></code></b> (input_control)  </span><span>rectangle.origin.y <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">int</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (integer)</span><span data-if="dotnet" style="display:none"> (<i>int</i> / </span><span data-if="dotnet" style="display:none">long)</span><span data-if="cpp" style="display:none"> (<i>Hlong</i>)</span><span data-if="c" style="display:none"> (<i>Hlong</i>)</span></span>
</div>
<p class="pardesc">Row index of upper left corner.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>0</p>
<p class="pardesc"><span class="parcat">Value range:
      </span><code>
    <span data-if="hdevelop" style="display:inline">Row</span>
    <span data-if="c" style="display:none">Row</span>
    <span data-if="cpp" style="display:none">Row</span>
    <span data-if="com" style="display:none">Row</span>
    <span data-if="dotnet" style="display:none">row</span>
    <span data-if="python" style="display:none">row</span>
    </code> (lin)</p>
<p class="pardesc"><span class="parcat">Minimum increment:
      </span>1</p>
<p class="pardesc"><span class="parcat">Recommended increment:
      </span>1</p>
</div>
  <div class="par">
<div class="parhead">
<span id="Column" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Column</span><span data-if="c" style="display:none">Column</span><span data-if="cpp" style="display:none">Column</span><span data-if="com" style="display:none">Column</span><span data-if="dotnet" style="display:none">column</span><span data-if="python" style="display:none">column</span></code></b> (input_control)  </span><span>rectangle.origin.x <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">int</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (integer)</span><span data-if="dotnet" style="display:none"> (<i>int</i> / </span><span data-if="dotnet" style="display:none">long)</span><span data-if="cpp" style="display:none"> (<i>Hlong</i>)</span><span data-if="c" style="display:none"> (<i>Hlong</i>)</span></span>
</div>
<p class="pardesc">Column index of upper left corner.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>0</p>
<p class="pardesc"><span class="parcat">Value range:
      </span><code>
    <span data-if="hdevelop" style="display:inline">Column</span>
    <span data-if="c" style="display:none">Column</span>
    <span data-if="cpp" style="display:none">Column</span>
    <span data-if="com" style="display:none">Column</span>
    <span data-if="dotnet" style="display:none">column</span>
    <span data-if="python" style="display:none">column</span>
    </code> (lin)</p>
<p class="pardesc"><span class="parcat">Minimum increment:
      </span>1</p>
<p class="pardesc"><span class="parcat">Recommended increment:
      </span>1</p>
</div>
  <div class="par">
<div class="parhead">
<span id="Width" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Width</span><span data-if="c" style="display:none">Width</span><span data-if="cpp" style="display:none">Width</span><span data-if="com" style="display:none">Width</span><span data-if="dotnet" style="display:none">width</span><span data-if="python" style="display:none">width</span></code></b> (input_control)  </span><span>rectangle.extent.x <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">int</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (integer)</span><span data-if="dotnet" style="display:none"> (<i>int</i> / </span><span data-if="dotnet" style="display:none">long)</span><span data-if="cpp" style="display:none"> (<i>Hlong</i>)</span><span data-if="c" style="display:none"> (<i>Hlong</i>)</span></span>
</div>
<p class="pardesc">Width of the window.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>256</p>
<p class="pardesc"><span class="parcat">Value range:
      </span><code>
    <span data-if="hdevelop" style="display:inline">Width</span>
    <span data-if="c" style="display:none">Width</span>
    <span data-if="cpp" style="display:none">Width</span>
    <span data-if="com" style="display:none">Width</span>
    <span data-if="dotnet" style="display:none">width</span>
    <span data-if="python" style="display:none">width</span>
    </code> (lin)</p>
<p class="pardesc"><span class="parcat">Minimum increment:
      </span>1</p>
<p class="pardesc"><span class="parcat">Recommended increment:
      </span>1</p>
<p class="pardesc"><span class="parcat">Restriction:
      </span><code>0 &lt;= Width &lt;= 32768 || Width == -1</code></p>
</div>
  <div class="par">
<div class="parhead">
<span id="Height" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Height</span><span data-if="c" style="display:none">Height</span><span data-if="cpp" style="display:none">Height</span><span data-if="com" style="display:none">Height</span><span data-if="dotnet" style="display:none">height</span><span data-if="python" style="display:none">height</span></code></b> (input_control)  </span><span>rectangle.extent.y <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">int</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (integer)</span><span data-if="dotnet" style="display:none"> (<i>int</i> / </span><span data-if="dotnet" style="display:none">long)</span><span data-if="cpp" style="display:none"> (<i>Hlong</i>)</span><span data-if="c" style="display:none"> (<i>Hlong</i>)</span></span>
</div>
<p class="pardesc">Height of the window.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>256</p>
<p class="pardesc"><span class="parcat">Value range:
      </span><code>
    <span data-if="hdevelop" style="display:inline">Height</span>
    <span data-if="c" style="display:none">Height</span>
    <span data-if="cpp" style="display:none">Height</span>
    <span data-if="com" style="display:none">Height</span>
    <span data-if="dotnet" style="display:none">height</span>
    <span data-if="python" style="display:none">height</span>
    </code> (lin)</p>
<p class="pardesc"><span class="parcat">Minimum increment:
      </span>1</p>
<p class="pardesc"><span class="parcat">Recommended increment:
      </span>1</p>
<p class="pardesc"><span class="parcat">Restriction:
      </span><code>0 &lt;= Height &lt;= 32768 || Height == -1</code></p>
</div>
  <div class="par">
<div class="parhead">
<span id="FatherWindow" class="parname"><b><code><span data-if="hdevelop" style="display:inline">FatherWindow</span><span data-if="c" style="display:none">FatherWindow</span><span data-if="cpp" style="display:none">FatherWindow</span><span data-if="com" style="display:none">FatherWindow</span><span data-if="dotnet" style="display:none">fatherWindow</span><span data-if="python" style="display:none">father_window</span></code></b> (input_control)  </span><span>pointer <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">Union[int, str]</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (integer / </span><span data-if="hdevelop" style="display:inline">string)</span><span data-if="dotnet" style="display:none"> (<i>IntPtr</i> / </span><span data-if="dotnet" style="display:none">IntPtr)</span><span data-if="cpp" style="display:none"> (<i>Hlong</i> / </span><span data-if="cpp" style="display:none">HString)</span><span data-if="c" style="display:none"> (<i>Hlong</i> / </span><span data-if="c" style="display:none">char*)</span></span>
</div>
<p class="pardesc">Logical number of the father window. To specify the
display as father you may enter 'root' or 0.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>0</p>
<p class="pardesc"><span class="parcat">Restriction:
      </span><code>FatherWindow &gt;= 0</code></p>
</div>
  <div class="par">
<div class="parhead">
<span id="Mode" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Mode</span><span data-if="c" style="display:none">Mode</span><span data-if="cpp" style="display:none">Mode</span><span data-if="com" style="display:none">Mode</span><span data-if="dotnet" style="display:none">mode</span><span data-if="python" style="display:none">mode</span></code></b> (input_control)  </span><span>string <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">str</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (string)</span><span data-if="dotnet" style="display:none"> (<i>string</i>)</span><span data-if="cpp" style="display:none"> (<i>HString</i>)</span><span data-if="c" style="display:none"> (<i>char*</i>)</span></span>
</div>
<p class="pardesc">Window mode.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>
    <span data-if="hdevelop" style="display:inline">'visible'</span>
    <span data-if="c" style="display:none">"visible"</span>
    <span data-if="cpp" style="display:none">"visible"</span>
    <span data-if="com" style="display:none">"visible"</span>
    <span data-if="dotnet" style="display:none">"visible"</span>
    <span data-if="python" style="display:none">"visible"</span>
</p>
<p class="pardesc"><span class="parcat">List of values:
      </span><span data-if="hdevelop" style="display:inline">'buffer'</span><span data-if="c" style="display:none">"buffer"</span><span data-if="cpp" style="display:none">"buffer"</span><span data-if="com" style="display:none">"buffer"</span><span data-if="dotnet" style="display:none">"buffer"</span><span data-if="python" style="display:none">"buffer"</span>, <span data-if="hdevelop" style="display:inline">'invisible'</span><span data-if="c" style="display:none">"invisible"</span><span data-if="cpp" style="display:none">"invisible"</span><span data-if="com" style="display:none">"invisible"</span><span data-if="dotnet" style="display:none">"invisible"</span><span data-if="python" style="display:none">"invisible"</span>, <span data-if="hdevelop" style="display:inline">'transparent'</span><span data-if="c" style="display:none">"transparent"</span><span data-if="cpp" style="display:none">"transparent"</span><span data-if="com" style="display:none">"transparent"</span><span data-if="dotnet" style="display:none">"transparent"</span><span data-if="python" style="display:none">"transparent"</span>, <span data-if="hdevelop" style="display:inline">'visible'</span><span data-if="c" style="display:none">"visible"</span><span data-if="cpp" style="display:none">"visible"</span><span data-if="com" style="display:none">"visible"</span><span data-if="dotnet" style="display:none">"visible"</span><span data-if="python" style="display:none">"visible"</span></p>
</div>
  <div class="par">
<div class="parhead">
<span id="Machine" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Machine</span><span data-if="c" style="display:none">Machine</span><span data-if="cpp" style="display:none">Machine</span><span data-if="com" style="display:none">Machine</span><span data-if="dotnet" style="display:none">machine</span><span data-if="python" style="display:none">machine</span></code></b> (input_control)  </span><span>string <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">str</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (string)</span><span data-if="dotnet" style="display:none"> (<i>string</i>)</span><span data-if="cpp" style="display:none"> (<i>HString</i>)</span><span data-if="c" style="display:none"> (<i>char*</i>)</span></span>
</div>
<p class="pardesc">Name of the computer on which you want to open
the window. Otherwise the empty string.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>
    <span data-if="hdevelop" style="display:inline">''</span>
    <span data-if="c" style="display:none">""</span>
    <span data-if="cpp" style="display:none">""</span>
    <span data-if="com" style="display:none">""</span>
    <span data-if="dotnet" style="display:none">""</span>
    <span data-if="python" style="display:none">""</span>
</p>
</div>
  <div class="par">
<div class="parhead">
<span id="WindowHandle" class="parname"><b><code><span data-if="hdevelop" style="display:inline">WindowHandle</span><span data-if="c" style="display:none">WindowHandle</span><span data-if="cpp" style="display:none">WindowHandle</span><span data-if="com" style="display:none">WindowHandle</span><span data-if="dotnet" style="display:none">windowHandle</span><span data-if="python" style="display:none">window_handle</span></code></b> (output_control)  </span><span>window <code>→</code> <span data-if="dotnet" style="display:none"><a href="HWindow.html">HWindow</a>, </span><span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">HHandle</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (handle)</span><span data-if="dotnet" style="display:none"> (<i>IntPtr</i>)</span><span data-if="cpp" style="display:none"> (<i>HHandle</i>)</span><span data-if="c" style="display:none"> (<i>handle</i>)</span></span>
</div>
<p class="pardesc">Window handle.</p>
</div>
<div data-if="hdevelop" style="display:inline">
<h2 id="sec_example_hdevelop">例程 (HDevelop)</h2>
<pre class="example">
open_window(0,0,400,-1,'root','visible','',WindowHandle)
read_image(Image,'fabrik')
disp_image(Image,WindowHandle)
write_string(WindowHandle,'File, fabrik')
new_line(WindowHandle)
get_mbutton(WindowHandle,_,_,_)
set_lut(WindowHandle,'temperature')
set_color(WindowHandle,'blue')
write_string(WindowHandle,'temperature')
new_line(WindowHandle)
write_string(WindowHandle,'Draw Rectangle')
new_line(WindowHandle)
draw_rectangle1(WindowHandle,Row1,Column1,Row2,Column2)
set_part(WindowHandle,Row1,Column1,Row2,Column2)
disp_image(Image,WindowHandle)
new_line(WindowHandle)
</pre>
</div>
<div data-if="c" style="display:none">
<h2 id="sec_example_c">例程 (C)</h2>
<pre class="example">
open_window(0,0,400,-1,"root","visible","",&amp;WindowHandle);
read_image(&amp;Image,"fabrik");
disp_image(Image,WindowHandle);
write_string(WindowHandle,"File: fabrik");
new_line(WindowHandle);
get_mbutton(WindowHandle,NULL,NULL,NULL);
set_lut(WindowHandle,"temperature");
set_color(WindowHandle,"blue");
write_string(WindowHandle,"temperature");
new_line(WindowHandle);
write_string(WindowHandle,"Draw Rectangle");
new_line(WindowHandle);
draw_rectangle1(WindowHandle,&amp;Row1,&amp;Column1,&amp;Row2,&amp;Column2);
set_part(Row1,Column1,Row2,Column2);
disp_image(Image,WindowHandle);
new_line(WindowHandle);
</pre>
</div>
<div data-if="cpp" style="display:none">
<h2 id="sec_example_cpp">例程 (HDevelop)</h2>
<pre class="example">
open_window(0,0,400,-1,'root','visible','',WindowHandle)
read_image(Image,'fabrik')
disp_image(Image,WindowHandle)
write_string(WindowHandle,'File, fabrik')
new_line(WindowHandle)
get_mbutton(WindowHandle,_,_,_)
set_lut(WindowHandle,'temperature')
set_color(WindowHandle,'blue')
write_string(WindowHandle,'temperature')
new_line(WindowHandle)
write_string(WindowHandle,'Draw Rectangle')
new_line(WindowHandle)
draw_rectangle1(WindowHandle,Row1,Column1,Row2,Column2)
set_part(WindowHandle,Row1,Column1,Row2,Column2)
disp_image(Image,WindowHandle)
new_line(WindowHandle)
</pre>
</div>
<div data-if="com" style="display:none">
<h2 id="sec_example_com">例程 (HDevelop)</h2>
<pre class="example">
open_window(0,0,400,-1,'root','visible','',WindowHandle)
read_image(Image,'fabrik')
disp_image(Image,WindowHandle)
write_string(WindowHandle,'File, fabrik')
new_line(WindowHandle)
get_mbutton(WindowHandle,_,_,_)
set_lut(WindowHandle,'temperature')
set_color(WindowHandle,'blue')
write_string(WindowHandle,'temperature')
new_line(WindowHandle)
write_string(WindowHandle,'Draw Rectangle')
new_line(WindowHandle)
draw_rectangle1(WindowHandle,Row1,Column1,Row2,Column2)
set_part(WindowHandle,Row1,Column1,Row2,Column2)
disp_image(Image,WindowHandle)
new_line(WindowHandle)
</pre>
</div>
<div data-if="dotnet" style="display:none">
<h2 id="sec_example_dotnet">例程 (HDevelop)</h2>
<pre class="example">
open_window(0,0,400,-1,'root','visible','',WindowHandle)
read_image(Image,'fabrik')
disp_image(Image,WindowHandle)
write_string(WindowHandle,'File, fabrik')
new_line(WindowHandle)
get_mbutton(WindowHandle,_,_,_)
set_lut(WindowHandle,'temperature')
set_color(WindowHandle,'blue')
write_string(WindowHandle,'temperature')
new_line(WindowHandle)
write_string(WindowHandle,'Draw Rectangle')
new_line(WindowHandle)
draw_rectangle1(WindowHandle,Row1,Column1,Row2,Column2)
set_part(WindowHandle,Row1,Column1,Row2,Column2)
disp_image(Image,WindowHandle)
new_line(WindowHandle)
</pre>
</div>
<h2 id="sec_result">结果</h2>
<p>If the values of the specified parameters are correct
<code><span data-if="hdevelop" style="display:inline">open_window</span><span data-if="c" style="display:none">open_window</span><span data-if="cpp" style="display:none">OpenWindow</span><span data-if="com" style="display:none">OpenWindow</span><span data-if="dotnet" style="display:none">OpenWindow</span><span data-if="python" style="display:none">open_window</span></code> returns <TT>2</TT> (
      <TT>H_MSG_TRUE</TT>)
    .
If necessary an exception is raised.</p>
<h2 id="sec_predecessors">可能的前置算子</h2>
<p>
<code><a href="reset_obj_db.html"><span data-if="hdevelop" style="display:inline">reset_obj_db</span><span data-if="c" style="display:none">reset_obj_db</span><span data-if="cpp" style="display:none">ResetObjDb</span><span data-if="com" style="display:none">ResetObjDb</span><span data-if="dotnet" style="display:none">ResetObjDb</span><span data-if="python" style="display:none">reset_obj_db</span></a></code>
</p>
<h2 id="sec_successors">可能的后置算子</h2>
<p>
<code><a href="set_color.html"><span data-if="hdevelop" style="display:inline">set_color</span><span data-if="c" style="display:none">set_color</span><span data-if="cpp" style="display:none">SetColor</span><span data-if="com" style="display:none">SetColor</span><span data-if="dotnet" style="display:none">SetColor</span><span data-if="python" style="display:none">set_color</span></a></code>, 
<code><a href="query_window_type.html"><span data-if="hdevelop" style="display:inline">query_window_type</span><span data-if="c" style="display:none">query_window_type</span><span data-if="cpp" style="display:none">QueryWindowType</span><span data-if="com" style="display:none">QueryWindowType</span><span data-if="dotnet" style="display:none">QueryWindowType</span><span data-if="python" style="display:none">query_window_type</span></a></code>, 
<code><a href="get_window_type.html"><span data-if="hdevelop" style="display:inline">get_window_type</span><span data-if="c" style="display:none">get_window_type</span><span data-if="cpp" style="display:none">GetWindowType</span><span data-if="com" style="display:none">GetWindowType</span><span data-if="dotnet" style="display:none">GetWindowType</span><span data-if="python" style="display:none">get_window_type</span></a></code>, 
<code><a href="set_window_type.html"><span data-if="hdevelop" style="display:inline">set_window_type</span><span data-if="c" style="display:none">set_window_type</span><span data-if="cpp" style="display:none">SetWindowType</span><span data-if="com" style="display:none">SetWindowType</span><span data-if="dotnet" style="display:none">SetWindowType</span><span data-if="python" style="display:none">set_window_type</span></a></code>, 
<code><a href="get_mposition.html"><span data-if="hdevelop" style="display:inline">get_mposition</span><span data-if="c" style="display:none">get_mposition</span><span data-if="cpp" style="display:none">GetMposition</span><span data-if="com" style="display:none">GetMposition</span><span data-if="dotnet" style="display:none">GetMposition</span><span data-if="python" style="display:none">get_mposition</span></a></code>, 
<code><a href="set_tposition.html"><span data-if="hdevelop" style="display:inline">set_tposition</span><span data-if="c" style="display:none">set_tposition</span><span data-if="cpp" style="display:none">SetTposition</span><span data-if="com" style="display:none">SetTposition</span><span data-if="dotnet" style="display:none">SetTposition</span><span data-if="python" style="display:none">set_tposition</span></a></code>, 
<code><a href="set_tshape.html"><span data-if="hdevelop" style="display:inline">set_tshape</span><span data-if="c" style="display:none">set_tshape</span><span data-if="cpp" style="display:none">SetTshape</span><span data-if="com" style="display:none">SetTshape</span><span data-if="dotnet" style="display:none">SetTshape</span><span data-if="python" style="display:none">set_tshape</span></a></code>, 
<code><a href="set_window_extents.html"><span data-if="hdevelop" style="display:inline">set_window_extents</span><span data-if="c" style="display:none">set_window_extents</span><span data-if="cpp" style="display:none">SetWindowExtents</span><span data-if="com" style="display:none">SetWindowExtents</span><span data-if="dotnet" style="display:none">SetWindowExtents</span><span data-if="python" style="display:none">set_window_extents</span></a></code>, 
<code><a href="get_window_extents.html"><span data-if="hdevelop" style="display:inline">get_window_extents</span><span data-if="c" style="display:none">get_window_extents</span><span data-if="cpp" style="display:none">GetWindowExtents</span><span data-if="com" style="display:none">GetWindowExtents</span><span data-if="dotnet" style="display:none">GetWindowExtents</span><span data-if="python" style="display:none">get_window_extents</span></a></code>, 
<code><a href="query_color.html"><span data-if="hdevelop" style="display:inline">query_color</span><span data-if="c" style="display:none">query_color</span><span data-if="cpp" style="display:none">QueryColor</span><span data-if="com" style="display:none">QueryColor</span><span data-if="dotnet" style="display:none">QueryColor</span><span data-if="python" style="display:none">query_color</span></a></code>, 
<code><a href="set_check.html"><span data-if="hdevelop" style="display:inline">set_check</span><span data-if="c" style="display:none">set_check</span><span data-if="cpp" style="display:none">SetCheck</span><span data-if="com" style="display:none">SetCheck</span><span data-if="dotnet" style="display:none">SetCheck</span><span data-if="python" style="display:none">set_check</span></a></code>, 
<code><a href="set_system.html"><span data-if="hdevelop" style="display:inline">set_system</span><span data-if="c" style="display:none">set_system</span><span data-if="cpp" style="display:none">SetSystem</span><span data-if="com" style="display:none">SetSystem</span><span data-if="dotnet" style="display:none">SetSystem</span><span data-if="python" style="display:none">set_system</span></a></code>
</p>
<h2 id="sec_see">参考其它</h2>
<p>
<code><a href="disp_region.html"><span data-if="hdevelop" style="display:inline">disp_region</span><span data-if="c" style="display:none">disp_region</span><span data-if="cpp" style="display:none">DispRegion</span><span data-if="com" style="display:none">DispRegion</span><span data-if="dotnet" style="display:none">DispRegion</span><span data-if="python" style="display:none">disp_region</span></a></code>, 
<code><a href="disp_image.html"><span data-if="hdevelop" style="display:inline">disp_image</span><span data-if="c" style="display:none">disp_image</span><span data-if="cpp" style="display:none">DispImage</span><span data-if="com" style="display:none">DispImage</span><span data-if="dotnet" style="display:none">DispImage</span><span data-if="python" style="display:none">disp_image</span></a></code>, 
<code><a href="disp_color.html"><span data-if="hdevelop" style="display:inline">disp_color</span><span data-if="c" style="display:none">disp_color</span><span data-if="cpp" style="display:none">DispColor</span><span data-if="com" style="display:none">DispColor</span><span data-if="dotnet" style="display:none">DispColor</span><span data-if="python" style="display:none">disp_color</span></a></code>, 
<code><a href="set_lut.html"><span data-if="hdevelop" style="display:inline">set_lut</span><span data-if="c" style="display:none">set_lut</span><span data-if="cpp" style="display:none">SetLut</span><span data-if="com" style="display:none">SetLut</span><span data-if="dotnet" style="display:none">SetLut</span><span data-if="python" style="display:none">set_lut</span></a></code>, 
<code><a href="query_color.html"><span data-if="hdevelop" style="display:inline">query_color</span><span data-if="c" style="display:none">query_color</span><span data-if="cpp" style="display:none">QueryColor</span><span data-if="com" style="display:none">QueryColor</span><span data-if="dotnet" style="display:none">QueryColor</span><span data-if="python" style="display:none">query_color</span></a></code>, 
<code><a href="set_color.html"><span data-if="hdevelop" style="display:inline">set_color</span><span data-if="c" style="display:none">set_color</span><span data-if="cpp" style="display:none">SetColor</span><span data-if="com" style="display:none">SetColor</span><span data-if="dotnet" style="display:none">SetColor</span><span data-if="python" style="display:none">set_color</span></a></code>, 
<code><a href="set_rgb.html"><span data-if="hdevelop" style="display:inline">set_rgb</span><span data-if="c" style="display:none">set_rgb</span><span data-if="cpp" style="display:none">SetRgb</span><span data-if="com" style="display:none">SetRgb</span><span data-if="dotnet" style="display:none">SetRgb</span><span data-if="python" style="display:none">set_rgb</span></a></code>, 
<code><a href="set_hsi.html"><span data-if="hdevelop" style="display:inline">set_hsi</span><span data-if="c" style="display:none">set_hsi</span><span data-if="cpp" style="display:none">SetHsi</span><span data-if="com" style="display:none">SetHsi</span><span data-if="dotnet" style="display:none">SetHsi</span><span data-if="python" style="display:none">set_hsi</span></a></code>, 
<code><a href="set_pixel.html"><span data-if="hdevelop" style="display:inline">set_pixel</span><span data-if="c" style="display:none">set_pixel</span><span data-if="cpp" style="display:none">SetPixel</span><span data-if="com" style="display:none">SetPixel</span><span data-if="dotnet" style="display:none">SetPixel</span><span data-if="python" style="display:none">set_pixel</span></a></code>, 
<code><a href="set_gray.html"><span data-if="hdevelop" style="display:inline">set_gray</span><span data-if="c" style="display:none">set_gray</span><span data-if="cpp" style="display:none">SetGray</span><span data-if="com" style="display:none">SetGray</span><span data-if="dotnet" style="display:none">SetGray</span><span data-if="python" style="display:none">set_gray</span></a></code>, 
<code><a href="set_part.html"><span data-if="hdevelop" style="display:inline">set_part</span><span data-if="c" style="display:none">set_part</span><span data-if="cpp" style="display:none">SetPart</span><span data-if="com" style="display:none">SetPart</span><span data-if="dotnet" style="display:none">SetPart</span><span data-if="python" style="display:none">set_part</span></a></code>, 
<code><a href="set_part_style.html"><span data-if="hdevelop" style="display:inline">set_part_style</span><span data-if="c" style="display:none">set_part_style</span><span data-if="cpp" style="display:none">SetPartStyle</span><span data-if="com" style="display:none">SetPartStyle</span><span data-if="dotnet" style="display:none">SetPartStyle</span><span data-if="python" style="display:none">set_part_style</span></a></code>, 
<code><a href="query_window_type.html"><span data-if="hdevelop" style="display:inline">query_window_type</span><span data-if="c" style="display:none">query_window_type</span><span data-if="cpp" style="display:none">QueryWindowType</span><span data-if="com" style="display:none">QueryWindowType</span><span data-if="dotnet" style="display:none">QueryWindowType</span><span data-if="python" style="display:none">query_window_type</span></a></code>, 
<code><a href="get_window_type.html"><span data-if="hdevelop" style="display:inline">get_window_type</span><span data-if="c" style="display:none">get_window_type</span><span data-if="cpp" style="display:none">GetWindowType</span><span data-if="com" style="display:none">GetWindowType</span><span data-if="dotnet" style="display:none">GetWindowType</span><span data-if="python" style="display:none">get_window_type</span></a></code>, 
<code><a href="set_window_type.html"><span data-if="hdevelop" style="display:inline">set_window_type</span><span data-if="c" style="display:none">set_window_type</span><span data-if="cpp" style="display:none">SetWindowType</span><span data-if="com" style="display:none">SetWindowType</span><span data-if="dotnet" style="display:none">SetWindowType</span><span data-if="python" style="display:none">set_window_type</span></a></code>, 
<code><a href="get_mposition.html"><span data-if="hdevelop" style="display:inline">get_mposition</span><span data-if="c" style="display:none">get_mposition</span><span data-if="cpp" style="display:none">GetMposition</span><span data-if="com" style="display:none">GetMposition</span><span data-if="dotnet" style="display:none">GetMposition</span><span data-if="python" style="display:none">get_mposition</span></a></code>, 
<code><a href="set_tposition.html"><span data-if="hdevelop" style="display:inline">set_tposition</span><span data-if="c" style="display:none">set_tposition</span><span data-if="cpp" style="display:none">SetTposition</span><span data-if="com" style="display:none">SetTposition</span><span data-if="dotnet" style="display:none">SetTposition</span><span data-if="python" style="display:none">set_tposition</span></a></code>, 
<code><a href="set_window_extents.html"><span data-if="hdevelop" style="display:inline">set_window_extents</span><span data-if="c" style="display:none">set_window_extents</span><span data-if="cpp" style="display:none">SetWindowExtents</span><span data-if="com" style="display:none">SetWindowExtents</span><span data-if="dotnet" style="display:none">SetWindowExtents</span><span data-if="python" style="display:none">set_window_extents</span></a></code>, 
<code><a href="get_window_extents.html"><span data-if="hdevelop" style="display:inline">get_window_extents</span><span data-if="c" style="display:none">get_window_extents</span><span data-if="cpp" style="display:none">GetWindowExtents</span><span data-if="com" style="display:none">GetWindowExtents</span><span data-if="dotnet" style="display:none">GetWindowExtents</span><span data-if="python" style="display:none">get_window_extents</span></a></code>, 
<code><a href="set_window_attr.html"><span data-if="hdevelop" style="display:inline">set_window_attr</span><span data-if="c" style="display:none">set_window_attr</span><span data-if="cpp" style="display:none">SetWindowAttr</span><span data-if="com" style="display:none">SetWindowAttr</span><span data-if="dotnet" style="display:none">SetWindowAttr</span><span data-if="python" style="display:none">set_window_attr</span></a></code>, 
<code><a href="set_check.html"><span data-if="hdevelop" style="display:inline">set_check</span><span data-if="c" style="display:none">set_check</span><span data-if="cpp" style="display:none">SetCheck</span><span data-if="com" style="display:none">SetCheck</span><span data-if="dotnet" style="display:none">SetCheck</span><span data-if="python" style="display:none">set_check</span></a></code>, 
<code><a href="set_system.html"><span data-if="hdevelop" style="display:inline">set_system</span><span data-if="c" style="display:none">set_system</span><span data-if="cpp" style="display:none">SetSystem</span><span data-if="com" style="display:none">SetSystem</span><span data-if="dotnet" style="display:none">SetSystem</span><span data-if="python" style="display:none">set_system</span></a></code>
</p>
<h2 id="sec_module">模块</h2>
<p>
Foundation</p>
<!--OP_REF_FOOTER_START-->
<hr>
<div class="indexlink">
<a href="index_classes.html"><span data-if="dotnet" style="display:none;">类别</span><span data-if="cpp" style="display:none;">类别</span></a><span data-if="dotnet" style="display:none;"> | </span><span data-if="cpp" style="display:none;"> | </span><a href="index_by_name.html">算子列表</a>
</div>
<div class="footer">
<div class="copyright">HALCON算子参考手册 Copyright © 2015-2023 51Halcon</div>
</div>
</div>
</body>
</html>
